<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>代码测试</title>
	</head>
	<body>
		<script>
			// 求菲波那切数列的前20个数字
			const fibonacci = [];
			fibonacci[0] = 1;
			fibonacci[1] = 1;

			for (let i = 2; i < 20; i++) {
				fibonacci[i] = fibonacci[i - 1] + fibonacci[i - 2];
			}

			console.log(fibonacci);
		</script>
	</body>
</html>
